#!/bin/sh -e
## 01_fix_freetype_build.dpatch by Sylvain Le Gall <gildor@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /mnt/nfs0/gildor/deb/ocaml-package/camlimages/camlimages-2.11/freetype2/ftintf.c camlimages-2.11/freetype2/ftintf.c
--- /mnt/nfs0/gildor/deb/ocaml-package/camlimages/camlimages-2.11/freetype2/ftintf.c	2001-12-17 16:25:21.000000000 +0100
+++ camlimages-2.11/freetype2/ftintf.c	2004-01-14 15:46:40.000000000 +0100
@@ -20,7 +20,8 @@
 
 #if (HAVE_FREETYPE && HAVE_FREETYPE2)
 
-#include <freetype/freetype.h>
+#include <ft2build.h>
+#include FT_FREETYPE_H
 
 value init_FreeType()
 {
